package com.flyco.modules.ums.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 签到配置
 * @Author: flyco
 * @Date:   2021-06-10
 * @Version: V1.0
 */
@Data
@TableName("ums_sign_config")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ums_sign_config对象", description="签到配置")
public class UmsSignConfig {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**连续签到天数*/
	@Excel(name = "连续签到天数", width = 15)
    @ApiModelProperty(value = "连续签到天数")
	private Integer signDay;
	/**明细种类：coupon优惠券，lottery抽奖*/
	@Excel(name = "明细种类：coupon优惠券，lottery抽奖", width = 15)
    @ApiModelProperty(value = "明细种类：coupon优惠券，lottery抽奖")
	@Dict(dicCode = "sign_config_category")
	private String category;
	/**优惠劵uuid，抽奖活动id*/
	@Excel(name = "优惠劵uuid，抽奖活动id", width = 15)
    @ApiModelProperty(value = "优惠劵uuid，抽奖活动id")
	private String categoryId;
	/**删除状态：0->未删除；1->已删除*/
	@Excel(name = "删除状态：0->未删除；1->已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	@TableLogic
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
